Developer Documentation

QuickTime 4 API Documentation

QuickTime Music Architecture

| Previous | Chapter Contents | Chapter Top | Next |

Rest Event

The rest event ( Figure 7 ) specifies the period of time, defined by either the media time scale or the tune player time scale, until the next event in the sequence is played.

Figure 7 Rest event

Table 4 Contents of a rest event

Rest event type First nibble value = 000X
Duration Specifies the number of units of time until the next note event is played in units defined by media time scale or tune player time scale

Use this macro call to stuff the rest event's long word:

qtma_StuffRestEvent(x, duration)

Use this macro call to extract the rest event's duration value:

qtma_RestDuration(x)

Rest events are not used to cause silence in a sequence, but to define the start of subsequent events.


© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |